﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Demo01</title>
    <style type="text/css">
        div, table, tr, td {
        margin: 0px;
        padding: 0px;
        }

        .myTable {
        width: 800px;
        margin: 20px auto;
        border-collapse: collapse;
        }

        .myTable td, .myTable th {
        height: 30px;
        line-heigh: 30px;
        padding: 6px;
        }
    </style>
</head>
<body>
    <h1>查询发票信息</h1>
    <table class="myTable" border="1">
        <tr>
            <th>序号：</th>
            <th>类型：</th>
            <th>金额：</th>         
        </tr>
        @foreach (var item in ViewBag.listView)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.Category</td>
                <td>@item.Amount</td>
                
                <td>
                    <a href="#">编辑</a>|
                    <a href="#">删除</a>
                </td>

            </tr>
        }
    </table>
    <h1>总金额：</h1>
    <p>@ViewBag.totalAmount</p>
</body>
</html>
